﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using HRMS_Model;

namespace DataManager
{
    public class ClientManager
    {
        public static void AddClient(Client clientObj)
        {
            using (HRMSEntities clientEntity = new HRMSEntities())
            {
                Client client = new Client();
                client.CompanyName = clientObj.CompanyName;
                client.Address = clientObj.Address;
                client.City = clientObj.City;
                client.State = clientObj.State;
                client.ContactName = clientObj.ContactName;
                client.Designation = clientObj.Designation;
                client.Email = clientObj.Email;
                client.Fax = clientObj.Fax;
                client.Telephone = clientObj.Telephone;
                client.Zip = clientObj.Zip;
                clientEntity.Clients.AddObject(clientObj);

            }
        }
    }
}
